

import java.io.IOException;

/**
 * Created by gaoliwei02 on 17/6/9.
 */
public class SingleDiveceThread extends Thread {
    private int id;

    public SingleDiveceThread(int id) {
        this.id = id;
    }

    @Override
    public void run() {
        SingleDevice singleDevice = new SingleDevice(id);
        try {
            singleDevice.begin();
        } catch (IOException e) {
            e.printStackTrace();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
